<?php

namespace app\common\model;

use think\Model;

class HomePage extends Model
{

    /*
     * 首页轮播大图
     */
    public static function dataList($where,$page=1,$num=6){
        return self::where($where)
            ->field('id,img,link')
            ->order('sort','asc')
            ->page($page,$num)
            ->select();
    }
}